package com.ccrfid.rmc6.pojo.dto.rollcall;

import com.ccrfid.rmc6.entity.business.rollcall.RollcallResultEntity;
import com.ccrfid.rmc6.entity.business.rollcall.RollcallTempEntity;

import java.sql.Timestamp;

public class RollcallResultDto {
    private Long id;
    private Long rollcallId;
    private Timestamp rollcallTime;
    private String userAccount;
    private Long orgId;
    private String orgName;
    private Long personnelId;
    private String personnelName;
    private Long cardNumber;
    private Integer cardOnlineStatus;
    private Long locationId;
    private String locationName;
    private Long locationBindOrgId;
    private Integer locatorAddress;
    private Timestamp locateTime;
    private Integer result;
    private String remark;

    public RollcallResultDto() {
    }

    public RollcallResultDto(RollcallResultEntity entity) {
        this.id = entity.getId();
        this.rollcallId = entity.getRollcallId();
        this.rollcallTime = entity.getRollcallTime();
        this.userAccount = entity.getUserAccount();
        this.orgId = entity.getOrgId();
        this.orgName = entity.getOrgName();
        this.personnelId = entity.getPersonnelId();
        this.personnelName = entity.getPersonnelName();
        this.cardNumber = entity.getCardNumber();
        this.cardOnlineStatus = entity.getCardOnlineStatus();
        this.locationId = entity.getLocationId();
        this.locationName = entity.getLocationName();
        this.locationBindOrgId = entity.getLocationBindOrgId();
        this.locatorAddress = entity.getLocatorAddress();
        this.locateTime = entity.getLocateTime();
        this.result = entity.getResult();
        this.remark = entity.getRemark();
    }

    public RollcallResultDto(RollcallTempEntity entity) {
        this.id = entity.getId();
        this.rollcallId = entity.getRollcallId();
        this.rollcallTime = entity.getRollcallTime();
        this.userAccount = entity.getUserAccount();
        this.orgId = entity.getOrgId();
        this.orgName = entity.getOrgName();
        this.personnelId = entity.getPersonnelId();
        this.personnelName = entity.getPersonnelName();
        this.cardNumber = entity.getCardNumber();
        this.cardOnlineStatus = entity.getCardOnlineStatus();
        this.locationId = entity.getLocationId();
        this.locationName = entity.getLocationName();
        this.locationBindOrgId = entity.getLocationBindOrgId();
        this.locatorAddress = entity.getLocatorAddress();
        this.locateTime = entity.getLocateTime();
        this.result = entity.getResult();
        this.remark = entity.getRemark();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRollcallId() {
        return rollcallId;
    }

    public void setRollcallId(Long rollcallId) {
        this.rollcallId = rollcallId;
    }

    public Timestamp getRollcallTime() {
        return rollcallTime;
    }

    public void setRollcallTime(Timestamp rollcallTime) {
        this.rollcallTime = rollcallTime;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName;
    }

    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    public Integer getCardOnlineStatus() {
        return cardOnlineStatus;
    }

    public void setCardOnlineStatus(Integer cardOnlineStatus) {
        this.cardOnlineStatus = cardOnlineStatus;
    }

    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    public Long getLocationBindOrgId() {
        return locationBindOrgId;
    }

    public void setLocationBindOrgId(Long locationBindOrgId) {
        this.locationBindOrgId = locationBindOrgId;
    }

    public Integer getLocatorAddress() {
        return locatorAddress;
    }

    public void setLocatorAddress(Integer locatorAddress) {
        this.locatorAddress = locatorAddress;
    }

    public Timestamp getLocateTime() {
        return locateTime;
    }

    public void setLocateTime(Timestamp locateTime) {
        this.locateTime = locateTime;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
